<me:UIAM x:Class="WPFExcelReport.SpinMachine"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:me="clr-namespace:WPFExcelReport"
             mc:Ignorable="d" 
             x:Name="TV"
             Loaded="TV_Loaded" 
             >
    <Border BorderThickness="0,0,0,0" BorderBrush="LightGreen" Background="LightCyan" Name="border">
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="20"></RowDefinition>
                <RowDefinition Height="20"></RowDefinition>
            </Grid.RowDefinitions>
            <StackPanel Grid.Row="0">
                <TextBlock Text="{Binding Path=DES}" Width="Auto" VerticalAlignment="Center" ></TextBlock>
            </StackPanel>
            <StackPanel Grid.Row="1" >
                <WrapPanel  >
                    <TextBlock Text="总数量" Width="Auto" Background="White" VerticalAlignment="Center"></TextBlock>
                    <TextBlock Text="{Binding Path=MJQTY,ElementName=TV}" Width="Auto" Background="White" VerticalAlignment="Center"></TextBlock>
                    <TextBlock Text="(" Width="Auto" Background="White" VerticalAlignment="Center"></TextBlock >
                    <TextBlock Text="{Binding Path=MJNUM,ElementName=TV}" Width="Auto" Background="White" VerticalAlignment="Center"></TextBlock>
                    <TextBlock Text=")" Width="Auto" Background="White"></TextBlock>
                </WrapPanel>
            </StackPanel>
        </Grid>
    </Border>
</me:UIAM >
